package com.wnxy.sddfp.access.controller;

import com.wnxy.sddfp.access.service.ITradeLogService;
import com.wnxy.sddfp.common.model.dto.bank.BankCardAddDTO;
import com.wnxy.sddfp.common.model.dto.bank.SignatureDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 托管系统交易记录表 前端控制器
 * </p>
 *
 * @author shuaige
 * @since 2025-03-20
 */
@RestController
@RequestMapping("/trade-log")
public class TradeLogController {
    @Autowired
    private ITradeLogService tradeLogService;

    /**
     * 绑卡
     */
    @PostMapping("/bank/access/card")
    public SignatureDto proxyBindCardLog(@RequestBody BankCardAddDTO bankCardAddDTO) {
        SignatureDto signatureDto = tradeLogService.proxyBindCardLog(bankCardAddDTO);
        return signatureDto;
    }

}
